// //ts 基础类型
// let isDone: boolean = false
// let count: number = 10
// let person: string = 'csc'
// const sym = Symbol()
// let obj = {
//     [sym]: 'wn'
// }
// // let list: number[] = [1, 2, 3]
// let list: Array<number> = [1,2,3] // 泛型语法
// list.push(4)
// // 枚举类型
var Direction;
(function (Direction) {
    Direction[Direction["NOTH"] = 0] = "NOTH";
    Direction[Direction["SOUTH"] = 1] = "SOUTH";
    Direction[Direction["RAST"] = 2] = "RAST";
    Direction[Direction["WEST"] = 3] = "WEST";
})(Direction || (Direction = {}));
var dir = Direction.NOTH;
console.log(dir);
// // 字符串枚举
// enum DirectionStr {
//     NOTH = "NOTH",
//     SOUTH = "SOUTH",
//     RAST = "RAST",
//     WEST = "WEST"
// }
// 常量枚举
// const enum DirectionCon {
//     NOTH,
//     SOUTH,
//     RAST,
//     WEST
// }
// let dir: DirectionCon = DirectionCon.NOTH //相当于定义一个0
// // 异构枚举
// enum Enum {
//     A,
//     B,
//     C = 'C',
//     D = 'D',
//     E = 8
// }
